<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="theme/style.css"
	media="screen" />
<title>OES - Login</title>
<script language="javascript">
	function userfocus() 
	{
		document.fm.userName.focus();
	}

	function check() 
	{
		var u, p;
		u = document.fm.userName.value;
		p = document.fm.password.value;
		if (u.length < 1) 
		{
			alert("You must enter User Name");
			document.fm.userName.focus();
			return false;
		} else if (p.length < 1) 
		{
			alert("You must enter Password");
			document.fm.password.focus();
			return false;
		}
		return true;
	}
	
	function showForgotPassword()
	{
		window.location.href = './ForgotPassword.jsp'; 
	}
	
	function showUserRegistration()
	{
		window.location.href = './Registration.jsp'; 
	}
	
	function popitup(url) {
		newwindow=window.open(url,'asdf','height=500,width=400,resizable=0');
		if (window.focus) {newwindow.focus();}
	}


</script>
</head>
<body onload="userfocus()">
	<div id="MainWrapper">
		<jsp:include page="header.jsp" /> 
		<div id="MainContent">
			<center>
				<br><br><br><br>
				<b><font size="2">Welcome</font></b><br>
				<jsp:useBean id="msg" class="com.ignou.mca.beans.Message"/>
				<jsp:getProperty property="message" name="msg"/>
				<br>
				<form action="VerifyLogin" method="post" name="fm" onsubmit="return check()" onreset="userfocus()">
					<table>
						<tr><td>User Name: </td><td><input type="text" name="userName"/></td></tr>
						<tr><td>Password: </td><td><input type="password" name="password"/></td></tr>
						<tr><td></td><td><input type="submit" name="submit" value="Submit"/> <input type="reset" name="reset" value="Clear"/></td></tr>
					</table>
				</form>
				<br><br>
				Forgot password? Click <a href="javascript: showForgotPassword()">here</a> to get password. <br>
				Click <a href="javascript: showUserRegistration()">here</a> to Sign up.

				
			</center>
			<br><br><br><br><br><br><br><br>
		</div>
		<jsp:include page="footer.jsp" />
	</div>
</body>
</html>